# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
业务中移动系统串行调用
# 文件：credit_flow_pethome.py
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

# 腾讯天御分、同盾信贷保镖、银联智慧风险评估、黑名单查询、基本信息、鹏元查询、腾讯云银行卡四要素、电话邦查、企查查
credit_info = {
    "aiChongApplyAmount":"501230.00",                 # 爱宠申请金额 pro_main.apply_amt
    "aiChongConfirmGMV":"0",                          # 爱宠平台总销售额 pro_trade.material_total_amt+device_total_amt
    "aiChongContact1Relation":"1",                    # 爱宠直系亲属关系：1-配偶 2-父母 3-子女
    "aiChongContact2Relation":"5",                    # 爱宠紧急联系人关系：1-配偶 2-父母 3-子女 4-亲戚 5-同事 6-朋友 7-其他
    "aiChongDownPaymentAmount":"502220.00",           # 爱宠首付款金额 pro_main.down_pay_amt
    "aiChongEquipmentAmount":"138000.00",             # 爱宠设备总额 pro_trade_device.device_price(多条记录相加)
    "aiChongInstallmentTerm":"12",                    # 爱宠分期期数 pro_main.periods
    "aiChongPurchaseMode":"1",                        # 爱宠购机方式 1-首付款
    "aiChongRefundGMV":"0",                           # 爱宠平台总退款数 pro_trade.material_total_refund_amt+device_total_refund_amt
    "aiChongRegisteredDays":0,                        # 爱宠平台注册距今天数
    "baiHangD14TotalQueryNumber":"0",
    "baiHangD180TotalQueryNumber":"0",
    "baiHangD30TotalQueryNumber":"0",
    "baiHangD7TotalQueryNumber":"0",
    "baiHangD90TotalQueryNumber":"0",
    "baiHangNonRevMaxOverdueStatus":"N",
    "baiHangNonRevOverdueCount":"0",
    "baiHangNonRevRemainingOverdueLoanCount":"0",
    "baiHangRevMaxOverdueStatus":"N",
    "baiHangRevOverdueCount":"0",
    "baiHangRevRemainingOverdueAccountCount":"0",
    "baiHangTel3Verify":"-2",                         # 百行-手机三要素核验 -2-查询异常,0-手机号、证件号、姓名均一致
    "creditAge":"31",                                 # 年龄（周岁）
    "creditBlkBankCardHitBankCard":"0",               # 授信-客户银行卡号码命中黑名单银行卡号码
    "creditBlkIdCardHitIdCard":"0",                   # 授信-客户身份证命中黑名单身份证
    "creditBlkMblNoHitMblNo":"1",                     # 授信-客户手机号命中黑名单手机号    1-命中
    "creditCusSex":"1",                               # 0-女 1-男
    "creditIdCardPD":"5646",                          # 身份证有效期到期日距今天数
    "creditMaritalSta":"1",                           # 1-已婚 2-未婚 3-离异 4-丧偶
    "dianHuaBangTelConsume":"12",
    "dianHuaBangTelOperation":"移动",
    "dianHuaBangTelPeriod":"5",
    "dianHuaBangTelStatus":"2",
    "faceLiteLivenessResult":"PASS",
    "faceLiteResultFaceidConfidence":"93.039",
    "idcard":"36242219881103431X",
    "mobile":"15917374871",
    "name":"曾令为",
    "pengYuanPersonalSolvency":"经评估，预计未来12个月个人年偿债能力约为10.8-13.2万元/年。",  # 鹏元个人偿债能力 evaluateResult
    "processNo":"PRO202009221928166554107781",
    "qiChaChaAdminPunNo":"-989",                   # 行政处罚数量：工商详情Full版-->Result.AdminPun
    "qiChaChaAnnoReminderCountNo":"-989",          # 公示催告数量：经营风险.公示催告：/PublishNotice/PublishNoticeList-->Paging.TotalRecords
    "qiChaChaCompStatus":"开业",                     # 企业状态：工商详情Full版-->Result.Status
    "qiChaChaCourtAnno":"-989",                     # 法院公告数量：法律诉讼.法院公告：/CourtNoticeV4/SearchCourtAnnouncement-->Paging.TotalRecords
    "qiChaChaCourtNotice":"-989",                   # 开庭公告数量：法律诉讼.开庭公告详情查询：/CourtAnnoV4/SearchCourtNotice-->Result数量
    "qiChaChaEnvPunishCountNo":"-989",              # 环保处罚数量：经营风险.环保处罚：/EnvPunishment/GetEnvPunishmentList-->Paging.TotalRecords
    "qiChaChaEquityFreezeCountNo":"-989",           # 股权冻结数量：法律诉讼.股权冻结：/JudicialAssistance/GetJudicialAssistance-->Result.EquityUnFreezeDetail='null'的数量
    "qiChaChaEquityPleCountNo":"-989",              # 股权出质数量：法律诉讼.股权出质：/StockEquityPledge/GetStockPledgeList-->Result.Status='有效'的数量
    "qiChaChaExceptionCountNo":"1",                 # 经营异常数量：工商详情Full版-->Result.Exceptions.RemoveDate不为Null的数量
    "qiChaChaJudicialCountNo":"-989",               # 司法拍卖数量：经营风险.司法拍卖：/JudicialSale/GetJudicialSaleList-->Paging.TotalRecords
    "qiChaChaLandPledgeCountNo":"-989",             # 土地抵押数量：经营风险.土地抵押：/LandMortgage/GetLandMortgageList-->Paging.TotalRecords
    "qiChaChaLawFileCountNo":"-989",                # 裁判文书数量：法律诉讼.裁判文书：/JudgeDocV4/SearchJudgmentDoc-->Paging.TotalRecords
    "qiChaChaLiquidation":"-989",                    # 清算数量：工商详情Full版-->Result.Liquidation
    "qiChaChaMPledgeCountNo":"-989",                 # 动产抵押数量：经营风险.动产抵押：/ChattelMortgage/GetChattelMortgage-->Paging.TotalRecords
    "qiChaChaOperName":"阮芳",                       # 法人姓名：工商详情Full版-->Result.OperName
    "qiChaChaQueryResult":"Y",                       # Status=200，则返回Y；Status=201，则返回N；其他，-989
    "qiChaChaSeriousCountNo":"-989",                 # 严重违法数量：经营风险.严重违法：/SeriousViolation/GetSeriousViolationList-->Paging.TotalRecords
    "qiChaChaShiXinItems":"0",                       # 失信数量：工商详情Full版-->Result.ShiXinItems
    "qiChaChaSimCancelCountNo":"-989",               # 简易注销数量：经营风险.简易注销：/SimpleCancellation/GetSimpleCancellation-->Paging.TotalRecords
    "qiChaChaStartMonth":"55",                       # 企业成立时长(月)：当前日期-成立日期 工商详情Full版：/ECIV4/GetFullDetailsByName-->Result.StartDate
    "qiChaChaTaxOweCountNo":"-989",                  # 欠税公告数量：经营风险.欠税公告：/TaxOweNotice/GetTaxOweNoticeList-->Paging.TotalRecords
    "qiChaChaTaxVioCountNo":"-989",                  # 税收违法数量：经营风险.税收违法：/TaxIllegal/TaxIllegalList-->Paging.TotalRecords
    "qiChaChaTeamEndMonth":"544",                    # 营业期限至今月数：工商详情Full版-->Result.TeamEnd
    "qiChaChaZhiXingItems":"0",                      # 执行数量：工商详情Full版-->Result.ZhiXingItems
    "tencentCloudBankCard4Verify":"Y",               # 腾讯云-银行卡四要素验证是否一致（授信）
    "tencentRiskCode1101":"N",
    "tencentRiskCode1102":"N",
    "tencentRiskCode1103":"N",
    "tencentRiskCode1104":"N",
    "tencentRiskCode1105":"N",
    "tencentRiskCode1106":"N",
    "tencentRiskCode1107":"N",
    "tencentRiskCode1108":"N",
    "tencentRiskCode1201":"N",
    "tencentRiskCode3101":"N",
    "tencentRiskCode3103":"N",
    "tencentRiskCode3104":"N",
    "tencentRiskCode3202":"N",
    "tencentRiskScore":"34",                         # 天御分
    "tongDunEmailNumberCount":"0",                   # 3个月身份证关联邮箱数
    "tongDunFraudPoints":"2.0",                      # 同盾欺诈分final_score
    "tongDunFuzzyList":"N",
    "tongDunIdNumberCount":"0",
    "tongDunIdNumberHighFocusList":"N",
    "tongDunJusticeRepresentList":"N",
    "tongDunLoseFuzzyList":"N",
    "tongDunLoseList":"N",
    "tongDunLowFocusList":"Y",
    "tongDunMiddleFocusList":"N",
    "tongDunOneMonthPlatfromNumber":"0",
    "tongDunOverdueFuzzyList":"N",
    "tongDunOverdueList":"N",
    "tongDunOwingHistory":"N",
    "tongDunOwingTaxesList":"N",
    "tongDunPerformFuzzyList":"N",
    "tongDunPerformList":"N",
    "tongDunPhoneHighFocusList":"N",
    "tongDunPhoneNumberCount":"0",
    "tongDunPhoneOverdueList":"N",
    "tongDunPhoneRepaymentList":"N",
    "tongDunRepaymentList":"N",
    "tongDunRepresentList":"N",
    "tongDunSettleLawsuitList":"N",
    "tongDunSpuriousLibrary":"N",
    "tongDunThreeMonthIdNumberCount":"0",
    "tongDunThreeMonthPhoneCount":"0",
    "tongDunThreeMonthPlatfromNumber":"0",
    "tongDunThreeMonthSpouseIdNumberCount":"0",
    "tongDunThreeMonthSpousePhoneCount":"0",
    "tongDunTrumpetLibrary":"N",
    "tongDunWantedList":"N",
    "tongDunWeekPlatfromNumber":"0",
    "unionPReportHarvestCP0238":"-989",
    "unionPReportHarvestCP2001":"-989",
    "unionPReportHarvestCP2016":"-989",
    "unionPReportHarvestCP3001":"-989",
    "unionPReportHarvestCP3016":"-989",
    "unionPReportHarvestCP3218":"-989",
    "unionPReportHarvestCP3227":"-989",
    "unionPReportHarvestCP4001":"-989",
    "unionPReportHarvestCP4016":"-989",
    "unionPReportHarvestCP5001":"-989",
    "unionPReportHarvestCP5016":"-989",
    "unionPReportHarvestCP6005":"-989",
    "unionPReportHarvestCP6006":"-989",
    "unionPReportHarvestRP0001":"-989",
    "unionPReportHarvestRP0004":"-989",
    "unionPReportHarvestRP0007":"-989",
    "unionPReportHarvestRP0017":"-989",
    "unionPReportHarvestRP0018":"-989",
    "unionPReportHarvestRP0019":"-989",
    "unionPReportHarvestRP0033":"-989.0",
    "yiBaoBankConfirmStatus":"BIND_SUCCESS"
}